export default (_self, h) => {
	return h("el-switch", {
		props: {
			value: _self.obj.value,
			"active-color": "#13ce66",
			"inactive-color": "#ff4949",
		},
		attrs: {
			disabled: !_self.obj.status,
		},
		on: {
			change: e => {
				_self.obj.value = e;
			},
		},
	});
};
export const switchConf = {
	status: true, // 启用状态，true启用；0停用
	elementWidth: "100%",
	elementType: "switch", // 对应数据库内类型
	elementName: "开 关", // 控件左侧label内容
	value: false, // 绑定的值
	icon: "el-icon-turn-off",
	required: false, // 是否必填
	rules: [],
};
